package com.fy56.platform.logistics.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fy56.platform.logistics.common.AbstractModel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Created by lml on 2018/2/25.
 */
public class OrderTest extends AbstractModel implements Serializable {
    private String orderBillMasterId;

    private String openid;  //用户openId
    private String orderNumber;//票号
    private String goodsNumber;//货号
    private String manualNumber;//手工单号
    private String tenantId;//租户ID
    private String tenantCode;//租户编码
    private String pickUpWay;//提货方式
    private String receiver;//收货人
    private String receiverMobile;//收货人手机
    private String receiverAddress;//收货人地址
    private String goodsName;//货物名称
    private Integer numberOfGoods;//件数
    private Double collectionOfMoney;//代收货款
    private String packageType;//包装
    private String remarks;//备注
    private String sender;//发货人
    private String senderMobile;//发货人手机
    private String senderAddress;//发货人地址
    private String senderIdNo;//发货人身份证
    private String receiverIdNo;//收货人身份证

    private String transferCompanyCode;     //中转公司编码
    private String transferCompanyName;     //中转公司名称

    private String hBackupString1;     //承运物流
    private String hBackupString4;     //指定物流
    private String hBackupString5;     //车辆类型
    private String hBackupString6;     //配送类型
    private String transportMode;     //运输方式

    private String bankName;//开户银行
    private String bankCardNumber;//银行账号
    private String bankAccount;//开户人
    private String vipNumber;//一卡通号
    private Double weight; //重量
    private Double bulk;//体积
    private String payWay;//付款方式
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date orderCreateTime;//开票日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date orderUpdateTime;//产生时间
    private String pickUpCode;//提货码
    private String placeOfLoading;//开票地点
    private String sendCompany;//发货公司
    private String unloadPlace;//卸货地点
    private String receiveCompany;//到货公司
    private String receiverCompany;//收货单位
    private String userId;//用户ID
    private Boolean generateFlag;//生成货运单标识
    private String codeCompany; //
    private Double freight;//运费
    private Double priceDifference;//差额
    private Double cashOnDelivery;//货到付款
    private String sendWay;//发货方式（网点寄件/上门取件）

    private String consignerIdCard;//发货人身份证号
    private String consigneeIdCard;//收货人身份证号

    /******* 关联属性 ******/
    private int isDefaultReceiver;//是否设置为默认收货人
    private int isDefaultSender;//是否设置为默认发货人
    private int isSaveReceiver;//是否保存收货人
    private int isSaveSender;//是否保存发货人

    private String status;//状态
    private String createDate;//创建日期

    public String getOrderBillMasterId() {
        return orderBillMasterId;
    }

    public void setOrderBillMasterId(String orderBillMasterId) {
        this.orderBillMasterId = orderBillMasterId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getManualNumber() {
        return manualNumber;
    }

    public void setManualNumber(String manualNumber) {
        this.manualNumber = manualNumber;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getPickUpWay() {
        return pickUpWay;
    }

    public void setPickUpWay(String pickUpWay) {
        this.pickUpWay = pickUpWay;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getReceiverMobile() {
        return receiverMobile;
    }

    public void setReceiverMobile(String receiverMobile) {
        this.receiverMobile = receiverMobile;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getNumberOfGoods() {
        return numberOfGoods;
    }

    public void setNumberOfGoods(Integer numberOfGoods) {
        this.numberOfGoods = numberOfGoods;
    }

    public Double getCollectionOfMoney() {
        return collectionOfMoney;
    }

    public void setCollectionOfMoney(Double collectionOfMoney) {
        this.collectionOfMoney = collectionOfMoney;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getSenderMobile() {
        return senderMobile;
    }

    public void setSenderMobile(String senderMobile) {
        this.senderMobile = senderMobile;
    }

    public String getSenderAddress() {
        return senderAddress;
    }

    public void setSenderAddress(String senderAddress) {
        this.senderAddress = senderAddress;
    }

    public String getSenderIdNo() {
        return senderIdNo;
    }

    public void setSenderIdNo(String senderIdNo) {
        this.senderIdNo = senderIdNo;
    }

    public String getReceiverIdNo() {
        return receiverIdNo;
    }

    public void setReceiverIdNo(String receiverIdNo) {
        this.receiverIdNo = receiverIdNo;
    }

    public String getTransferCompanyCode() {
        return transferCompanyCode;
    }

    public void setTransferCompanyCode(String transferCompanyCode) {
        this.transferCompanyCode = transferCompanyCode;
    }

    public String getTransferCompanyName() {
        return transferCompanyName;
    }

    public void setTransferCompanyName(String transferCompanyName) {
        this.transferCompanyName = transferCompanyName;
    }

    public String gethBackupString1() {
        return hBackupString1;
    }

    public void sethBackupString1(String hBackupString1) {
        this.hBackupString1 = hBackupString1;
    }

    public String gethBackupString4() {
        return hBackupString4;
    }

    public void sethBackupString4(String hBackupString4) {
        this.hBackupString4 = hBackupString4;
    }

    public String gethBackupString5() {
        return hBackupString5;
    }

    public void sethBackupString5(String hBackupString5) {
        this.hBackupString5 = hBackupString5;
    }

    public String gethBackupString6() {
        return hBackupString6;
    }

    public void sethBackupString6(String hBackupString6) {
        this.hBackupString6 = hBackupString6;
    }

    public String getTransportMode() {
        return transportMode;
    }

    public void setTransportMode(String transportMode) {
        this.transportMode = transportMode;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankCardNumber() {
        return bankCardNumber;
    }

    public void setBankCardNumber(String bankCardNumber) {
        this.bankCardNumber = bankCardNumber;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getVipNumber() {
        return vipNumber;
    }

    public void setVipNumber(String vipNumber) {
        this.vipNumber = vipNumber;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getBulk() {
        return bulk;
    }

    public void setBulk(Double bulk) {
        this.bulk = bulk;
    }

    public String getPayWay() {
        return payWay;
    }

    public void setPayWay(String payWay) {
        this.payWay = payWay;
    }

    public Date getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public Date getOrderUpdateTime() {
        return orderUpdateTime;
    }

    public void setOrderUpdateTime(Date orderUpdateTime) {
        this.orderUpdateTime = orderUpdateTime;
    }

    public String getPickUpCode() {
        return pickUpCode;
    }

    public void setPickUpCode(String pickUpCode) {
        this.pickUpCode = pickUpCode;
    }

    public String getPlaceOfLoading() {
        return placeOfLoading;
    }

    public void setPlaceOfLoading(String placeOfLoading) {
        this.placeOfLoading = placeOfLoading;
    }

    public String getSendCompany() {
        return sendCompany;
    }

    public void setSendCompany(String sendCompany) {
        this.sendCompany = sendCompany;
    }

    public String getUnloadPlace() {
        return unloadPlace;
    }

    public void setUnloadPlace(String unloadPlace) {
        this.unloadPlace = unloadPlace;
    }

    public String getReceiveCompany() {
        return receiveCompany;
    }

    public void setReceiveCompany(String receiveCompany) {
        this.receiveCompany = receiveCompany;
    }

    public String getReceiverCompany() {
        return receiverCompany;
    }

    public void setReceiverCompany(String receiverCompany) {
        this.receiverCompany = receiverCompany;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Boolean getGenerateFlag() {
        return generateFlag;
    }

    public void setGenerateFlag(Boolean generateFlag) {
        this.generateFlag = generateFlag;
    }

    public String getCodeCompany() {
        return codeCompany;
    }

    public void setCodeCompany(String codeCompany) {
        this.codeCompany = codeCompany;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public Double getPriceDifference() {
        return priceDifference;
    }

    public void setPriceDifference(Double priceDifference) {
        this.priceDifference = priceDifference;
    }

    public Double getCashOnDelivery() {
        return cashOnDelivery;
    }

    public void setCashOnDelivery(Double cashOnDelivery) {
        this.cashOnDelivery = cashOnDelivery;
    }

    public String getSendWay() {
        return sendWay;
    }

    public void setSendWay(String sendWay) {
        this.sendWay = sendWay;
    }

    public String getConsignerIdCard() {
        return consignerIdCard;
    }

    public void setConsignerIdCard(String consignerIdCard) {
        this.consignerIdCard = consignerIdCard;
    }

    public String getConsigneeIdCard() {
        return consigneeIdCard;
    }

    public void setConsigneeIdCard(String consigneeIdCard) {
        this.consigneeIdCard = consigneeIdCard;
    }

    public int getIsDefaultReceiver() {
        return isDefaultReceiver;
    }

    public void setIsDefaultReceiver(int isDefaultReceiver) {
        this.isDefaultReceiver = isDefaultReceiver;
    }

    public int getIsDefaultSender() {
        return isDefaultSender;
    }

    public void setIsDefaultSender(int isDefaultSender) {
        this.isDefaultSender = isDefaultSender;
    }

    public int getIsSaveReceiver() {
        return isSaveReceiver;
    }

    public void setIsSaveReceiver(int isSaveReceiver) {
        this.isSaveReceiver = isSaveReceiver;
    }

    public int getIsSaveSender() {
        return isSaveSender;
    }

    public void setIsSaveSender(int isSaveSender) {
        this.isSaveSender = isSaveSender;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
}
